package com.cxb;

import android.app.Activity;     
import android.os.Bundle;  
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public class BaseActivity extends Activity {  
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
//		getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
	} 

	public void back_click(View v) {
		finish();
	}
	
	protected void onResume() {
	    super.onResume();
//	    MobclickAgent.onPageStart(this.getClass().getName()); //统计页面
//	    MobclickAgent.onResume(this);          //统计时长
	}
	protected void onPause() { 
	    super.onPause();
//	    MobclickAgent.onPageEnd(this.getClass().getName()); // 保证 onPageEnd 在onPause 之前调用,因为 onPause 中会保存信息 
//	    MobclickAgent.onPause(this);
	}
}
